<!--  -->
<template>
  <div>
      <div v-if="loading">loading...</div>
      <ul v-else-if="list.length">
          <li v-for='(item,index) in list' :key="index">{{item}}</li>
      </ul>
      <div v-else>没有数据</div>
  </div>
</template>

<script>
export default {
    props:["list",'loading'],
  data () {
    return {};
  },

}

</script>
<style lang='scss' scoped>
</style>